package com.water.camera.fragment;

import android.app.Dialog;
import android.view.ViewGroup;
import android.view.Window;

public class FullScreenDlg extends BaseDialogFragment {

    @Override
    public void onStart() {
        super.onStart();
        Dialog dialog = getDialog();
        if (dialog != null) {
            Window window = dialog.getWindow();
            if (window != null) {
                int width = getWidth();
                int height = getHeight();
                window.setLayout(width, height);
            }
        }
    }

    protected int getHeight() {
        return ViewGroup.LayoutParams.MATCH_PARENT;
    }

    protected int getWidth() {
        return ViewGroup.LayoutParams.MATCH_PARENT;
    }
}
